Integrand size = 37, antiderivative size = 193 \[ \int \frac {(a+b \sin (e+f x))^2}{(g \cos (e+f x))^{7/2} \sqrt {d \sin (e+f x)}} \, dx=\frac {8 a^2 \sqrt {d \sin (e+f x)}}{5 d f g^3 \sqrt {g \cos (e+f x)}}+\frac {8 a b (d \sin (e+f x))^{3/2}}{5 d^2 f g^3 \sqrt {g \cos (e+f x)}}+\frac {2 \sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^2}{5 d f g (g \cos (e+f x))^{5/2}}-\frac {8 a b \sqrt {g \cos (e+f x)} E\left (\left .e-\frac {\pi }{4}+f x\right |2\right ) \sqrt {d \sin (e+f x)}}{5 d f g^4 \sqrt {\sin (2 e+2 f x)}} \]
[Out]
Time = 0.31 (sec) , antiderivative size = 193, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.162, Rules used = {2967, 2917, 2643, 2651, 2652, 2719} \[ \int \frac {(a+b \sin (e+f x))^2}{(g \cos (e+f x))^{7/2} \sqrt {d \sin (e+f x)}} \, dx=\frac {8 a^2 \sqrt {d \sin (e+f x)}}{5 d f g^3 \sqrt {g \cos (e+f x)}}+\frac {8 a b (d \sin (e+f x))^{3/2}}{5 d^2 f g^3 \sqrt {g \cos (e+f x)}}-\frac {8 a b E\left (\left .e+f x-\frac {\pi }{4}\right |2\right ) \sqrt {d \sin (e+f x)} \sqrt {g \cos (e+f x)}}{5 d f g^4 \sqrt {\sin (2 e+2 f x)}}+\frac {2 \sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^2}{5 d f g (g \cos (e+f x))^{5/2}} \]
[In]
[Out]
Rule 2643
Rule 2651
Rule 2652
Rule 2719
Rule 2917
Rule 2967
Rubi steps \begin{align*} \text {integral}& = \frac {2 \sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^2}{5 d f g (g \cos (e+f x))^{5/2}}+\frac {(4 a) \int \frac {a+b \sin (e+f x)}{(g \cos (e+f x))^{3/2} \sqrt {d \sin (e+f x)}} \, dx}{5 g^2} \\ & = \frac {2 \sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^2}{5 d f g (g \cos (e+f x))^{5/2}}+\frac {\left (4 a^2\right ) \int \frac {1}{(g \cos (e+f x))^{3/2} \sqrt {d \sin (e+f x)}} \, dx}{5 g^2}+\frac {(4 a b) \int \frac {\sqrt {d \sin (e+f x)}}{(g \cos (e+f x))^{3/2}} \, dx}{5 d g^2} \\ & = \frac {8 a^2 \sqrt {d \sin (e+f x)}}{5 d f g^3 \sqrt {g \cos (e+f x)}}+\frac {8 a b (d \sin (e+f x))^{3/2}}{5 d^2 f g^3 \sqrt {g \cos (e+f x)}}+\frac {2 \sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^2}{5 d f g (g \cos (e+f x))^{5/2}}-\frac {(8 a b) \int \sqrt {g \cos (e+f x)} \sqrt {d \sin (e+f x)} \, dx}{5 d g^4} \\ & = \frac {8 a^2 \sqrt {d \sin (e+f x)}}{5 d f g^3 \sqrt {g \cos (e+f x)}}+\frac {8 a b (d \sin (e+f x))^{3/2}}{5 d^2 f g^3 \sqrt {g \cos (e+f x)}}+\frac {2 \sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^2}{5 d f g (g \cos (e+f x))^{5/2}}-\frac {\left (8 a b \sqrt {g \cos (e+f x)} \sqrt {d \sin (e+f x)}\right ) \int \sqrt {\sin (2 e+2 f x)} \, dx}{5 d g^4 \sqrt {\sin (2 e+2 f x)}} \\ & = \frac {8 a^2 \sqrt {d \sin (e+f x)}}{5 d f g^3 \sqrt {g \cos (e+f x)}}+\frac {8 a b (d \sin (e+f x))^{3/2}}{5 d^2 f g^3 \sqrt {g \cos (e+f x)}}+\frac {2 \sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^2}{5 d f g (g \cos (e+f x))^{5/2}}-\frac {8 a b \sqrt {g \cos (e+f x)} E\left (\left .e-\frac {\pi }{4}+f x\right |2\right ) \sqrt {d \sin (e+f x)}}{5 d f g^4 \sqrt {\sin (2 e+2 f x)}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 0.70 (sec) , antiderivative size = 105, normalized size of antiderivative = 0.54 \[ \int \frac {(a+b \sin (e+f x))^2}{(g \cos (e+f x))^{7/2} \sqrt {d \sin (e+f x)}} \, dx=\frac {2 \left (15 a^2+10 a b \cos ^2(e+f x)^{5/4} \operatorname {Hypergeometric2F1}\left (\frac {3}{4},\frac {9}{4},\frac {7}{4},\sin ^2(e+f x)\right ) \sin (e+f x)+3 \left (-4 a^2+b^2\right ) \sin ^2(e+f x)\right ) \tan (e+f x)}{15 f g^2 (g \cos (e+f x))^{3/2} \sqrt {d \sin (e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(457\) vs. \(2(192)=384\).
Time = 2.87 (sec) , antiderivative size = 458, normalized size of antiderivative = 2.37
method | result | size |
default | \(\frac {\sqrt {2}\, \left (-4 \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )}\, F\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right ) a b \cos \left (f x +e \right )+8 \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )}\, E\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right ) a b \cos \left (f x +e \right )-4 \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )}\, F\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right ) a b +8 \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )}\, E\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right ) a b +\sqrt {2}\, b^{2} \sin \left (f x +e \right ) \left (\tan ^{2}\left (f x +e \right )\right )+4 \sin \left (f x +e \right ) \sqrt {2}\, a^{2}-4 \sqrt {2}\, a b \cos \left (f x +e \right )+2 a b \sqrt {2}+\sqrt {2}\, a^{2} \tan \left (f x +e \right ) \sec \left (f x +e \right )+2 a b \sqrt {2}\, \left (\sec ^{2}\left (f x +e \right )\right )\right )}{5 g^{3} f \sqrt {g \cos \left (f x +e \right )}\, \sqrt {d \sin \left (f x +e \right )}}\) | \(458\) |
parts | \(\frac {2 a^{2} \left (4 \sin \left (f x +e \right )+\sec \left (f x +e \right ) \tan \left (f x +e \right )\right )}{5 f \,g^{3} \sqrt {d \sin \left (f x +e \right )}\, \sqrt {g \cos \left (f x +e \right )}}+\frac {2 b^{2} \sin \left (f x +e \right ) \left (\tan ^{2}\left (f x +e \right )\right )}{5 f \,g^{3} \sqrt {d \sin \left (f x +e \right )}\, \sqrt {g \cos \left (f x +e \right )}}-\frac {2 a b \sqrt {2}\, \left (-4 E\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right ) \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )}\, \cos \left (f x +e \right )+2 \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )}\, F\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right ) \cos \left (f x +e \right )-4 E\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right ) \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )}+2 \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )+1}\, \sqrt {-\csc \left (f x +e \right )+\cot \left (f x +e \right )}\, F\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right )+2 \cos \left (f x +e \right ) \sqrt {2}-\sqrt {2}-\sqrt {2}\, \left (\sec ^{2}\left (f x +e \right )\right )\right )}{5 f \,g^{3} \sqrt {d \sin \left (f x +e \right )}\, \sqrt {g \cos \left (f x +e \right )}}\) | \(491\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.16 (sec) , antiderivative size = 237, normalized size of antiderivative = 1.23 \[ \int \frac {(a+b \sin (e+f x))^2}{(g \cos (e+f x))^{7/2} \sqrt {d \sin (e+f x)}} \, dx=-\frac {2 \, {\left (2 i \, \sqrt {i \, d g} a b \cos \left (f x + e\right )^{3} E(\arcsin \left (\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )\,|\,-1) - 2 i \, \sqrt {-i \, d g} a b \cos \left (f x + e\right )^{3} E(\arcsin \left (\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )\,|\,-1) - 2 i \, \sqrt {i \, d g} a b \cos \left (f x + e\right )^{3} F(\arcsin \left (\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )\,|\,-1) + 2 i \, \sqrt {-i \, d g} a b \cos \left (f x + e\right )^{3} F(\arcsin \left (\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )\,|\,-1) - {\left ({\left (4 \, a^{2} - b^{2}\right )} \cos \left (f x + e\right )^{2} + a^{2} + b^{2} + 2 \, {\left (2 \, a b \cos \left (f x + e\right )^{2} + a b\right )} \sin \left (f x + e\right )\right )} \sqrt {g \cos \left (f x + e\right )} \sqrt {d \sin \left (f x + e\right )}\right )}}{5 \, d f g^{4} \cos \left (f x + e\right )^{3}} \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b \sin (e+f x))^2}{(g \cos (e+f x))^{7/2} \sqrt {d \sin (e+f x)}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(a+b \sin (e+f x))^2}{(g \cos (e+f x))^{7/2} \sqrt {d \sin (e+f x)}} \, dx=\int { \frac {{\left (b \sin \left (f x + e\right ) + a\right )}^{2}}{\left (g \cos \left (f x + e\right )\right )^{\frac {7}{2}} \sqrt {d \sin \left (f x + e\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b \sin (e+f x))^2}{(g \cos (e+f x))^{7/2} \sqrt {d \sin (e+f x)}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b \sin (e+f x))^2}{(g \cos (e+f x))^{7/2} \sqrt {d \sin (e+f x)}} \, dx=\int \frac {{\left (a+b\,\sin \left (e+f\,x\right )\right )}^2}{{\left (g\,\cos \left (e+f\,x\right )\right )}^{7/2}\,\sqrt {d\,\sin \left (e+f\,x\right )}} \,d x \]
[In]
[Out]